package com.xiaoran.robot.utils;

import com.alibaba.fastjson.JSONObject;

public class ThreadLocalUtils {
    private static final ThreadLocal<JSONObject> threadLocal = new ThreadLocal<>();

    public void setMsg(JSONObject msg){
        threadLocal.set(msg);
    }

    public JSONObject getMsg(){
        return threadLocal.get();
    }
}
